<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .avatars {
          display: flex; /*弹性布局，元素默认水平排列*/
        }
        .avatars-item {
          /*后面的元素会向左移6px*/
          margin-left: -6px; 
        }
        .avatars-image {
          width: 40px;
          height: 40px;
          box-shadow: 0 0 0 4px #fff; /*白色的影阴*/
          border-radius: 9999px; /*圆半径足够大-形成正圆*/
        }
        .avatars-image img {
          border-radius: 9999px; /*圆的半径*/
          width: 100%;
          height: 100%;
          object-fit: cover; /*以图片原有尺寸来裁剪*/
        }
      </style>
</head>
<body>
    <div class="avatars">
        <!-- 头像1 -->
        <div class="avatars-item">
          <div class="avatars-image">
            <img src="../meinv.jpg" alt="" />
          </div>
        </div>
        <!-- 头像2 -->
        <div class="avatars-item">
          <div class="avatars-image">
            <img src="../meinv.jpg" alt="" />
          </div>
        </div>
        <!-- 头像3 -->
        <div class="avatars-item">
          <div class="avatars-image">
            <img src="../meinv.jpg" alt="" />
          </div>
        </div>
        <!-- 头像4 -->
        <div class="avatars-item">
          <div class="avatars-image">
            <img src="../meinv.jpg" alt="" />
          </div>
        </div>
      </div>
</body>
</html>